package com.thinkTank.oa.lucene;

import java.util.List;

import org.apache.solr.client.solrj.beans.Field;

public class LuceneCustomer {
	@Field
	String customerId;//
	@Field
	String customerNumber;//
	@Field
	String customerSource;//客户来源 
	@Field
	String customerType;//-客户类型
	@Field
	List<String> researchField;//客户领域 
	@Field
	String area;//客户地区
	@Field
	String customerName;//客户名称
	@Field
	String customerNature;//客户性质
	@Field
	String mainBusiness;// 主营业务
	@Field
	String majorNeeds;//主要需求
	@Field
	String intentionCooperate2;//意向合作方式1
	@Field
	String intentionCooperate;//意向合作方式2
	@Field
	String currentState;//当前合作状态
	@Field
	String customerContact;//客户联系人
	@Field
	String customerContactName;//联系人姓名
	
	public LuceneCustomer(){}
	public LuceneCustomer(	String customerId,	String customerNumber,	String customerSource,	String customerType,	List<String> researchField, String	area,String	customerName,String	customerNature,String 	mainBusiness,	String majorNeeds,String	intentionCooperate2,String	intentionCooperate,String	currentState,String	customerContact,String	customerContactName){
		
		this.customerId =customerId;
		this.customerNumber=customerNumber;
		this.customerSource=customerSource;
		this.customerType=customerType;
		this.researchField=researchField;
		this.area=area;
		this.customerName=customerName;
		this.customerNature=customerNature;
		this.mainBusiness=mainBusiness;
		this.majorNeeds=majorNeeds;
		this.intentionCooperate2=intentionCooperate2;
		this.intentionCooperate=intentionCooperate;
		this.currentState=currentState;
		this.customerContact=customerContact;
		this.customerContactName=customerContactName;
	}

	public static String getFileds(String key){
		if(key==null||key.equals("")){
			return "customer";
		}else if(key.equals("customerId")){
			return "customerId";
		}else if(key.toLowerCase().equals("cn")){
			return "customerNumber";
		}else if(key.toLowerCase().equals("cs")){
			return "customerSource";
		}else if(key.toLowerCase().equals("ct")){
			return "customerType";
		}else if(key.toLowerCase().equals("rf")){
			return "researchField";
		}else if(key.toLowerCase().equals("area")){
			return "area";
		}else if(key.toLowerCase().equals("cun")){
			return "customerName";
		}else if(key.toLowerCase().equals("ctn")){
			return "customerNature";
		}else if(key.toLowerCase().equals("mb")){
			return "mainBusiness";
		}else if(key.toLowerCase().equals("mn")){
			return "majorNeeds";
		}else if(key.toLowerCase().equals("ic")){
			return "intentionCooperate2";
		}else if(key.toLowerCase().equals("ico")){
			return "intentionCooperate";
		}else if(key.toLowerCase().equals("cs")){
			return "currentState";
		}else if(key.toLowerCase().equals("cc")){
			return "customerContact";
		}else if(key.toLowerCase().equals("ccn")){
			return "customerContactName";
		}else{
			return "customer";
		}
	}
	public String getCustomerId() {
		return customerId;
	}
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	public String getCustomerNumber() {
		return customerNumber;
	}
	public void setCustomerNumber(String customerNumber) {
		this.customerNumber = customerNumber;
	}
	public String getCustomerSource() {
		return customerSource;
	}
	public void setCustomerSource(String customerSource) {
		this.customerSource = customerSource;
	}
	public String getCustomerType() {
		return customerType;
	}
	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}
	public List<String> getResearchField() {
		return researchField;
	}
	public void setResearchField(List<String> researchField) {
		this.researchField = researchField;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getCustomerNature() {
		return customerNature;
	}
	public void setCustomerNature(String customerNature) {
		this.customerNature = customerNature;
	}
	public String getMainBusiness() {
		return mainBusiness;
	}
	public void setMainBusiness(String mainBusiness) {
		this.mainBusiness = mainBusiness;
	}
	public String getMajorNeeds() {
		return majorNeeds;
	}
	public void setMajorNeeds(String majorNeeds) {
		this.majorNeeds = majorNeeds;
	}
	public String getIntentionCooperate2() {
		return intentionCooperate2;
	}
	public void setIntentionCooperate2(String intentionCooperate2) {
		this.intentionCooperate2 = intentionCooperate2;
	}
	public String getIntentionCooperate() {
		return intentionCooperate;
	}
	public void setIntentionCooperate(String intentionCooperate) {
		this.intentionCooperate = intentionCooperate;
	}
	public String getCurrentState() {
		return currentState;
	}
	public void setCurrentState(String currentState) {
		this.currentState = currentState;
	}
	public String getCustomerContact() {
		return customerContact;
	}
	public void setCustomerContact(String customerContact) {
		this.customerContact = customerContact;
	}
	public String getCustomerContactName() {
		return customerContactName;
	}
	public void setCustomerContactName(String customerContactName) {
		this.customerContactName = customerContactName;
	}


}
